<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        </div>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap">
        <fieldset>
            <div class="row">

                <div class="form-group col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <label for="order_id" class="control-label col-xs-4">订单号</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="order_id-operate" data-name="order_id" value="=" readonly="">
                        <input type="text" class="form-control" name="order_id" value="" placeholder="订单号" id="order_id" data-index="2">
                    </div>
                </div>
                {if condition="$userid eq 1"}

                <div class="form-group col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <label for="type" class="control-label col-xs-4">出库类型</label>
                    <div class="col-xs-8"><input type="hidden" class="form-control operate" name="type-operate" data-name="type" value="=" readonly="">
                        <select class="form-control" name="type">
                            <option value="">选择</option>
                            {volist name="typeList" id="vo"}
                            <option value="{$key}">{$vo}</option>
                            {/volist}

                        </select>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <label for="department" class="control-label col-xs-4">仓库</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="form-control operate" name="department-operate" data-name="cid" value="FIND_IN_SET" readonly="" />
                        <select class="form-control"  id="cid" name="cid">
                            <option value="">请选择</option>
                            {foreach name="data" id="vo"}
                            <option value="{$vo.id}">{$vo.gname}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                {/if}
                <div class="form-group col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>